<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>jq.bxCarousel插件-Jquery插件库-林氏智造</title>
		<link href="css/reset.css" rel="stylesheet" />
		<link href="css/style.css" rel="stylesheet" />
		<link href="css/ui.css" rel="stylesheet" />
		<link href="css/shCoreDefault.css" rel="stylesheet" />
		<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="js/shCore.js"></script>
		<script type="text/javascript" src="js/shBrushCSharp.js"></script>
		<script type="text/javascript">SyntaxHighlighter.all();</script>
		<script type="text/javascript" src="js/jq.bxCarousel.js"></script>
		<script type="text/javascript">
			$(function(){
				$('#demo1').bxCarousel({
				display_num: 3,//显示个数 
				move:1, //移动数量
				auto:true,//是否自动关闭
				controls: true,//控制按钮是否显示
				margin:0,//间距
				prev_class: 'lin_bxCarousel_btnPre',
				prev_text:'<',
				next_text:'>',
				next_class: 'lin_bxCarousel_btnNext',
				auto_hover: true//控制滚动对象的经过离开效果 
				});
			});
		</script>
	</head>
	<body id="main">
		
		<div class="slidebar">
			<a href="http://www.0773linji.com" title="林氏智造" class="logo">林氏智造</a>
			<div class="slidebar_title">Jquery<span class="ver">插件库</span></div>
            <iframe src="../menu.html" frameborder="0"></iframe>
		</div>
		
		<div class="content">
			
			<div class="caption"><h2>jq.bxCarousel插件</h2><span class="file">Define in : jq.bxCarousel.js</span></div>
			
			<div class="mod_desc">
        			<p>具体看源代码，不是很复杂!自己把以前定义按钮的图片改成定义按钮的样式了，这样子个人感觉以后好控制。</p>
    			</div>
    			
    			<h3 class="title_lv2">
    				$('#demo1').bxCarousel(<span>options</span>);
    			</h3>
    			
    			<dl class="deps">
        			<dt>依赖</dt>
        			<dd>JS : jquery-1.7.2.min.js</dd>
        			<dd>浏览器 : ie7+</dd>
    			</dl>
    			
    			<div class="params_box">
				<h5>参数</h5>
				<ul class="params_list">
					<li>
						<dl>
							<dt>options</dt>
							<dd>Object</dd>
						</dl>
						<div class="params_desc">
							<span class="type required">必需</span>
							<p>定位参数。</p>
						</div>
					</li>
				</ul>
			</div>
			
			<div class="article_box">
        			<p>下表列出了options参数介绍。</p>
    			</div>
    			
    			<table class="props_tb">
        <colgroup>
            <col style="width:130px">
            <col style="width:100px">
            <col style="width:70px">
            <col style="width:370px">
        </colgroup>
        <thead>
            <tr class="even">
                <th>参数</th>
                <th>数据类型</th>
                <th>默认值</th>
                <th>说明</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><b class="name">display_num</b></td>
                <td><span class="type">int</span></td>
                <td><span class="normal">4</span></td>
                <td class="t_l">
                    <p>元素显示个数</p>
                </td>
            </tr>
            <tr class="even">
                <td><b class="name">move</b></td>
                <td><span class="type">int</span></td>
                <td><span class="normal">4</span></td>
                <td class="t_l">
                    <p>一次移动的元素个数</p>
                </td>
            </tr>
            <tr>
                <td><b class="name">speed</b></td>
                <td><span class="type">int</span></td>
                <td><span class="normal">500</span></td>
                <td class="t_l">
                    <p>移动速度</p>
                </td>
            </tr>
            <tr class="even">
                <td><b class="name">margin</b></td>
                <td><span class="type">int</span></td>
                <td><span class="normal">0</span></td>
                <td class="t_l">
                    <p>元素之间间距</p>
                </td>
            </tr>
            <tr>
                <td><b class="name">auto</b></td>
                <td><span class="type">Boole</span></td>
                <td><span class="normal">false</span></td>
                <td class="t_l">
                    <p>是否自动执行</p>
                </td>
            </tr>
            <tr class="even">
                <td><b class="name">auto_interval</b></td>
                <td><span class="type">int</span></td>
                <td><span class="normal">2000</span></td>
                <td class="t_l">
                    <p>自动执行时间间隔</p>
                </td>
            </tr>
            <tr>
                <td><b class="name">auto_dir</b></td>
                <td><span class="type">String</span></td>
                <td><span class="normal">next</span></td>
                <td class="t_l">
                    <p>自动执行开始方向</p>
                </td>
            </tr>
            <tr class="even">
                <td><b class="name">auto_hover</b></td>
                <td><span class="type">Boole</span></td>
                <td><span class="normal">false</span></td>
                <td class="t_l">
                    <p>是否开启经过事件处理暂停</p>
                </td>
            </tr>
            <tr>
                <td><b class="name">next_text</b></td>
                <td><span class="type">String</span></td>
                <td><span class="normal">next</span></td>
                <td class="t_l">
                    <p>下一个按钮显示文字</p>
                </td>
            </tr>
            <tr class="even">
                <td><b class="name">next_class</b></td>
                <td><span class="type">String</span></td>
                <td><span class="normal">lin_bxCarousel_btnNext</span></td>
                <td class="t_l">
                    <p>下一个按钮样式</p>
                </td>
            </tr>
            <tr>
                <td><b class="name">prev_text</b></td>
                <td><span class="type">String</span></td>
                <td><span class="normal">prev</span></td>
                <td class="t_l">
                    <p>上一个按钮显示文字</p>
                </td>
            </tr>
            <tr class="even">
                <td><b class="name">prev_class</b></td>
                <td><span class="type">String</span></td>
                <td><span class="normal">lin_bxCarousel_btnPre</span></td>
                <td class="t_l">
                    <p>上一个按钮样式</p>
                </td>
            </tr>
            <tr>
                <td><b class="name">controls</b></td>
                <td><span class="type">Boole</span></td>
                <td><span class="normal">true</span></td>
                <td class="t_l">
                    <p>控制按钮是否显示</p>
                </td>
            </tr>
        </tbody>
    </table>
    
    
    <div class="example_box">
        <h5>例子一：基本调用</h5>
        <p>HTML</p>
        <div class="code_box">
        		<pre class="brush: csharp;"><div class="lin_bxCarousel">

  	<ul class="lin_bxCarousel_scrollObj"  id="挂接插件对象ID">
            <li></li>
            <li></li>
            <li></li>
            <li></li>                    
    </ul>
 </div></pre>
        </div>
		<p>CSS</p>    
        <div class="code_box">
        		<pre class="brush: csharp;">.lin_bxCarousel{width:600px; height:125px; border:1px solid #CCC; overflow:hidden; margin:0px auto; position:relative;}
.lin_bxCarousel_scrollObj{position:absolute; left:0px; top:0px; z-index:1;}
.lin_bxCarousel_scrollObj li{float:left; width:200px;height:125px; display:inline;}
.lin_bxCarousel_btnPre,.lin_bxCarousel_btnNext{position:absolute; z-index:4; background-color:#EEE; padding:5px; color:#666666; top:45px;}
.lin_bxCarousel_btnNext{right:1px;}
.lin_bxCarousel_btnPre{left:1px;}</pre>
        </div>        
		<p>JS</p>    
        <div class="code_box">
        		<pre class="brush: csharp;">$('#demo1').bxCarousel({
				display_num: 3,//显示个数 
				move:1, //移动数量
				auto:true,//是否自动关闭
				controls: true,//控制按钮是否显示
				margin:0,//间距
				prev_class: 'lin_bxCarousel_btnPre',
				prev_text:'<',
				next_text:'>',
				next_class: 'lin_bxCarousel_btnNext',
				auto_hover: true//控制滚动对象的经过离开效果 
		});</pre>
        </div>        
        
        <div class="demo_box">
            
            <div class="lin_bxCarousel">

            		<ul class="lin_bxCarousel_scrollObj"  id="demo1">
                		<li><img src="img/a.gif"  alt="图片一"/></li>
                    <li><img src="img/b.gif"  alt="图片二"/></li>
                		<li><img src="img/a.gif"  alt="图片一"/></li>
                    <li><img src="img/b.gif"  alt="图片二"/></li>                    
                </ul>
                
            </div>
            
        </div>
        
    </div>
    
    
    <div class="download">
        <h3>立即下载</h3>
        <div class="download_box">
            <a href="#" target="_blank" class="btn_download btn_download_wide">
                <span class="icon_box"><s class="icon_download"></s></span>
                <span class="title">jq.bxCarousel</span>
            </a>
        </div>
    </div>
    
    <div class="download">
        <h3>联系我</h3>
        <div class="download_box">
           <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=317365887&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:317365887:53" alt="请注明通过林氏智造发现此QQ" title="请注明通过林氏智造发现此QQ"/></a>
        </div>
    </div>
			
			
		</div>
		
	</body>
</html>
